<?php
$this->headTitle('Đăng ký');
$formRegister->setAttribute('action', $this->url('user-register'));
$formRegister->setAttribute('class', 'form-horizontal');
$formRegister->prepare();
echo $this->form()->openTag($formRegister);
?>
<div class="form-group">
    <?php echo $this->formLabel($formRegister->get('member_email')); ?>
    <div class="col-md-4">
        <?php echo $this->formInput($formRegister->get('member_email')); ?>
        <?php if ($this->formElementErrors($formRegister->get('member_email'))) { ?>
            <div class="alert-danger" style="margin-top: 10px;">
                <?php echo $this->formElementErrors($formRegister->get('member_email')); ?>
            </div>
        <?php } ?>
    </div>
</div>
<div class="form-group">
    <?php echo $this->formLabel($formRegister->get('member_password')); ?>
    <div class="col-md-4">
        <?php echo $this->formPassword($formRegister->get('member_password')); ?>
        <?php if ($this->formElementErrors($formRegister->get('member_password'))) { ?>
            <div class="alert-danger" style="margin-top: 10px;">
                <?php echo $this->formElementErrors($formRegister->get('member_password')); ?>
            </div>
        <?php } ?>
    </div>
</div>
<div class="form-group">
    <?php echo $this->formLabel($formRegister->get('retype_password')); ?>
    <div class="col-md-4">
        <?php echo $this->formPassword($formRegister->get('retype_password')); ?>
        <?php if ($this->formElementErrors($formRegister->get('retype_password'))) { ?>
            <div class="alert-danger" style="margin-top: 10px;">
                <?php echo $this->formElementErrors($formRegister->get('retype_password')); ?>
            </div>
        <?php } ?>
    </div>
</div>
<div class="form-group">
    <?php echo $this->formLabel($formRegister->get('captcha')); ?>
    <div class="col-md-4">
        <?php echo $this->formCaptcha($formRegister->get('captcha')); ?>
        <?php if ($this->formElementErrors($formRegister->get('captcha'))) { ?>
            <div class="alert-danger" style="margin-top: 10px;">
                <?php echo $this->formElementErrors($formRegister->get('captcha')); ?>
            </div>
        <?php } ?>
    </div>
</div>
<div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
        <?php echo $this->formSubmit($formRegister->get('register')); ?>
    </div>
</div>
<?php echo $this->form()->closeTag(); ?>